package com.example.demo1.service;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @Author zx
 * @Date 2022/2/10 13:35
 * @Version 1.0
 */
@Component
public class OrderService {

    private String id;
    private String name;


    public OrderService(){
    }

    @Bean
    public OrderService orderService1(){
        OrderService orderService = new OrderService();
        return orderService;
    }
//
//    @Bean
//    public OrderService orderService2(){
//        OrderService orderService = new OrderService();
//        return orderService;
//    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
